package com.learn.hibernatevalidator.chapter02.constraintviolationmethods;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author: liyf
 * @create: 2024-12-22 16:26
 **/
@Data
public class Car {

    @NotNull
    @Length(min = 3, max = 20)
    private String name;
}
